#pragma once

#include "Common/CTimer.h"
#include "GraphicMember.h"

#include <vector>

#include <math.h>

class RotatingTriangle : public GraphicMember 
{
public:
	RotatingTriangle(Graphic& graphic, INT width, INT height);
	~RotatingTriangle();

	RotatingTriangle(const RotatingTriangle&) = delete;
	RotatingTriangle& operator=(const RotatingTriangle&) = delete;

	VOID Draw(Graphic& graphic);

private:
	wrl::ComPtr<IDirect3DVertexBuffer9> _VertexBuffer;
	D3DXMATRIX _projection;
	D3DXMATRIX _worldMatrix;
	D3DXMATRIX _translation;
	D3DXMATRIX _rotation;
	FLOAT _angle;

	CTimer _Timer;
};

